import request from '@/utils/request'

// 查询支出收益列表
export function listAmount_log(query) {
  return request({
    url: '/admin/amount_log/list',
    method: 'get',
    params: query
  })
}

// 查询支出收益详细
export function getAmount_log(id) {
  return request({
    url: '/admin/amount_log/' + id,
    method: 'get'
  })
}

// 新增支出收益
export function addAmount_log(data) {
  return request({
    url: '/admin/amount_log',
    method: 'post',
    data: data
  })
}

// 修改支出收益
export function updateAmount_log(data) {
  return request({
    url: '/admin/amount_log',
    method: 'put',
    data: data
  })
}

// 删除支出收益
export function delAmount_log(id) {
  return request({
    url: '/admin/amount_log/' + id,
    method: 'delete'
  })
}

// 导出支出收益
export function exportAmount_log(query) {
  return request({
    url: '/admin/amount_log/export',
    method: 'get',
    params: query
  })
}
